<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="VistaControlEstudianteCreateDlg" widgetVar="VistaControlEstudianteCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.CreateVistaControlEstudianteTitle}">

            <h:form id="VistaControlEstudianteCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{vistaControlEstudianteController.selected != null}">

                        <h:outputLabel value="#{bundle.CreateVistaControlEstudianteLabel_cedula}" for="cedula" />
                        <p:inputText id="cedula" value="#{vistaControlEstudianteController.selected.cedula}" title="#{bundle.CreateVistaControlEstudianteTitle_cedula}" required="true" requiredMessage="#{bundle.CreateVistaControlEstudianteRequiredMessage_cedula}"/>

                        <h:outputLabel value="#{bundle.CreateVistaControlEstudianteLabel_nombres}" for="nombres" />
                        <p:inputText id="nombres" value="#{vistaControlEstudianteController.selected.nombres}" title="#{bundle.CreateVistaControlEstudianteTitle_nombres}" required="true" requiredMessage="#{bundle.CreateVistaControlEstudianteRequiredMessage_nombres}"/>

                        <h:outputLabel value="#{bundle.CreateVistaControlEstudianteLabel_apellidos}" for="apellidos" />
                        <p:inputText id="apellidos" value="#{vistaControlEstudianteController.selected.apellidos}" title="#{bundle.CreateVistaControlEstudianteTitle_apellidos}" required="true" requiredMessage="#{bundle.CreateVistaControlEstudianteRequiredMessage_apellidos}"/>

                        <h:outputLabel value="#{bundle.CreateVistaControlEstudianteLabel_correo}" for="correo" />
                        <p:inputText id="correo" value="#{vistaControlEstudianteController.selected.correo}" title="#{bundle.CreateVistaControlEstudianteTitle_correo}" required="true" requiredMessage="#{bundle.CreateVistaControlEstudianteRequiredMessage_correo}"/>

                        <h:outputLabel value="#{bundle.CreateVistaControlEstudianteLabel_carrera}" for="carrera" />
                        <p:inputText id="carrera" value="#{vistaControlEstudianteController.selected.carrera}" title="#{bundle.CreateVistaControlEstudianteTitle_carrera}" required="true" requiredMessage="#{bundle.CreateVistaControlEstudianteRequiredMessage_carrera}"/>
                        
                        <h:outputLabel value="#{bundle.CreateVistaControlEstudianteLabel_codMateria}" for="codMateria" />
                        <p:inputText id="codMateria" value="#{vistaControlEstudianteController.selected.codMateria}" title="#{bundle.CreateVistaControlEstudianteTitle_codMateria}" required="true" requiredMessage="#{bundle.CreateVistaControlEstudianteRequiredMessage_codMateria}"/>

                        <h:outputLabel value="#{bundle.CreateVistaControlEstudianteLabel_seccion}" for="seccion" />
                        <p:inputText id="seccion" value="#{vistaControlEstudianteController.selected.seccion}" title="#{bundle.CreateVistaControlEstudianteTitle_seccion}" required="true" requiredMessage="#{bundle.CreateVistaControlEstudianteRequiredMessage_seccion}"/>

                        <h:outputLabel value="#{bundle.CreateVistaControlEstudianteLabel_lapso}" for="lapso" />
                        <p:inputText id="lapso" value="#{vistaControlEstudianteController.selected.lapso}" title="#{bundle.CreateVistaControlEstudianteTitle_lapso}" required="true" requiredMessage="#{bundle.CreateVistaControlEstudianteRequiredMessage_lapso}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{vistaControlEstudianteController.saveNew}" value="#{bundle.Save}" update="display,:VistaControlEstudianteListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,VistaControlEstudianteCreateDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="VistaControlEstudianteCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
